<template>
    <div >
        <h3 class="head">head --- head --- head</h3>
        <p>{{title}}</p>
        <p>count ==={{count2}} </p>
    </div>
</template>

<script>
export default {
   name:"myhead",
   data () {
       return {
           title:"要加油啊~"
       }
   },
   computed: {
       count2(){
           return this.$store.state.count
       }
   }
}
</script>

<style lang="css" scoped>
.head{
    color: brown;
    background: aqua;
}

</style>

